package loan.calc.calculator.instalment;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Accessors(chain = true)
@ToString
@Schema(description = "期供计算器参数")
public class InstalmentCalculatorParamDTO implements Serializable {

    @Schema(description = "总期数")
    private Integer totalPeriods;

    @Schema(description = "剩余期数")
    private Integer outstandingPeriods;

    @Schema(description = "期次利率")
    private BigDecimal periodRate;

    @Schema(description = "总本金")
    private BigDecimal totalPrincipalAmount;

    @Schema(description = "本金余额")
    private BigDecimal principalBalance;

//    private LocalDate interestStartDate;
//
//    private LocalDate interestEndDate;

    @Schema(description = "利息金额")
    private BigDecimal interestAmt;
    @Schema(description = "本金金额")
    private BigDecimal principalAmt;
    @Schema(description = "期供金额")
    private BigDecimal instalmentAmt;
}
